package com.server.impl;

import com.dao.shoppingproduct.ShoppingProductMapper;
import com.entry.Product;
import com.server.ShoppingProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ShoppingProductServiceImpl implements ShoppingProductService{
    @Resource
    ShoppingProductMapper shoppingProductMapper;

    @Override
    public List<Product> getshoppingproductList() { return shoppingProductMapper.getshoppingproductList();}

    @Override
    public List<Product> getshoppingproductDetailList(Integer id) {
        return shoppingProductMapper.getshoppingproductDetailList(id);
    }

    /*public List<Product> getshoppingproductList(int product_id) {
        return shoppingProductMapper.getshoppingproductList();
    }*/
}
